package com.dd.cloud.common.constants;

import java.util.Arrays;
import java.util.List;

/**
 * @author zk
 */
public class ConsultConstants {

    /**
     * 预约类型
     */
    public interface Type {
        // 问诊
        int INQUIRY = 1;
        // 咨询
        int CONSULT = 2;

        public static final List<Integer> TYPES = Arrays.asList(INQUIRY, CONSULT);
    }

    /**
     * 数据状态
     */
    public static class Status {
        // -2已退款,-1取消预约,0提交预约(未支付), " +
        //     *             "1发起预约(已支付),   3咨询完成待评价 4进行中 5评价完成 6评价完成有投诉 7.超时
        public static final int NOPAY = 0;
        //支付完成,待医生接单 待开始
        public static final int SUBMIT = 1;
        //        医生已接单,等待开始
//        public static final int WAITSTART = 2;
        //取消订单
        public static final int CANCEL = -1;
        //已退款
        public static final int REFUND = -2;
        //咨询完成待评价
        public static final int SUCCWAITEVAL = 3;
        //进行中
        public static final int UNDERWAY = 4;
        //完成,评价完成
        public static final int SUCC = 5;
        //完成, 差评
        public static final int POOREVAL = 6;
        //待接诊,超时
        public static final int SUBMIT_TIMEOUT = 7;
        //医生可查询状态
        public static final String DOCTOR_CAN_QUE = "1,3,4,5,6,7";
        //后台可查询状态
        public static final String ADMIN_CAN_QUE = "-2,-1,1,3,4,5,6,7";
        public static final List<Integer> ACCOUNT = Arrays.asList(REFUND, SUBMIT, SUCCWAITEVAL, UNDERWAY, SUCC, POOREVAL);
        //完成状态集合
        public static final List<Integer> COMPLETE_ALL = Arrays.asList(SUCCWAITEVAL, SUCC, POOREVAL);
        //已接诊状态集合
        public static final List<Integer> RECEIVE_CONSULT_ALL = Arrays.asList(UNDERWAY, SUCCWAITEVAL, SUCC, POOREVAL);
        public static final List<Integer> DOCTOR_CAN_QUE_LIST = Arrays.asList(SUBMIT, SUCCWAITEVAL, UNDERWAY, SUCC, POOREVAL);
        //删除订单
        public static final int DEL = -3;
    }

    /**
     * 问诊电子病历状态
     */
    public interface ConsultMedicalRecordStatus {
        //正常
        int NORMAL = 1;
        //删除
        int DEL = -1;
        //未保存
        int NO_SAVE = 2;
    }
}
